package com.nongtai.pojo.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author yza
 * @version 1.0
 * @date 2024/7/5 19:16
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Sku implements Serializable {
    private String id;
    private String skuCode;
    private BigDecimal price;
    private BigDecimal oldPrice;
    private Integer inventory;
    private String picture;
    private List<Spec> specs;
    @Data
    public static class Spec{
        private String name;
        private String valueName;

        public Spec() {
        }

        public Spec(String name, String valueName) {
            this.name = name;
            this.valueName = valueName;
        }
    }
}
